/* 
 * File:   GraphicException.h
 * Author: johannes
 *
 * Created on January 16, 2014, 10:41 AM
 */

#ifndef GRAPHICEXCEPTION_H
#define	GRAPHICEXCEPTION_H

#include <exception>
#include <string>

namespace System
{
    namespace Exception
    {
        class GraphicException : std::exception
        {
        private:
            
        protected:
            std::string m_msg;
        public:
            GraphicException(const std::string& msg)throw() : m_msg("GraphicException ->" + msg){};
            virtual ~GraphicException() throw() {};
            const char* what() throw() { return this->m_msg.c_str(); }
        };
    }
}



#endif	/* GRAPHICEXCEPTION_H */

